<?php

namespace App\Enums\MiniAPP;

enum DuelStatus : string
{
    //待邀约
    case Pending = 'pending';

    //待审核
    case PendingReview = 'pending_review';

    //邀约成功
    case InviteSuccess = 'invite_success';

    //邀约失败
    case InviteFail = 'invite_fail';

    public function label()
    {
        return match ($this) {
            self::Pending => '待邀约',
            self::PendingReview => '待审核',
            self::InviteSuccess => '邀约成功',
            self::InviteFail => '邀约失败',
        };
    }
}
